package com.ivan.eduservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author Ivan
 * @Description
 * @Date 2020/8/9 12:06
 */
@Data
public class BaseTime {

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)//自动添加时间数据
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)//自动添加时间数据
    private Date gmtModified;
}
